import { formatDate } from '@/utils/tools'
import carPersonal from '@/components/ivew_conf/car_personal'
import{preConfList, getPreConfItem} from '@/components/ivew_conf/car_sy_plan'


// 车险新订单数据模板
export default class carNewOrderTemplate implements internalInf.carOrderAPI{

    // 显示用ID 与 实际订单id 不同
    SorderId = 'GB0000'
    Sstatus = "新建"
    SlastUpdateDate = formatDate(new Date())
    SDupdateCount = 0
    SDcreateAt = formatDate(new Date())

    // 订单支付金额
    SDjqAmount = 0
    SDsyAmount = 0
    SDtaxAmount = 0 
    SDqrCodeUrl = ''
    SDposCode = ' - '
    SDpayId = ''
    


    Did = ''
    DupdateAt = ''
    DseriesKind = 100
    Dsummary = ''

    // 会员
    DMnickname = '无数据'
    DMphone = '无数据'
    DMdepartment = '无数据'
    DMcompany = '无数据'
    DMlevel = '无数据'
    
    // 车辆信息
    DEVcategory = ['客车', 'K33']
    DEVengineCapacity = 0
    DEVmodel = ''
    DEVprice = 0
    DEVseats = 0
    DEVtonnages = 0
    DEVweight = 0
    DEVengineNo = ''
    DEVisCommercialUsage = false
    DEVissueDate = ''
    DEVplateNo = ''
    DEVregisterDate = ''
    DEVvin = ''

    // 车型ID
    DEVvehicleId = ''

    // 能源类型
    DEVenergyType = ''
    

    // 车船税
    DEVonBehalf = true
    DEVtaxAmount = 0
    DEVtaxSector = ''
    DEVtaxType = '微型客车'
    DEVticketId = ''
    DEVtaxPayerId = ''
    
    // 投保方案
    DEVpickJq = false
    DEVpickSy = false
    DEVjqStartDate = formatDate(new Date())
    DEVjqViCompany = '阳光'
    
    DEVsyRiskTable = getPreConfItem('自定义', preConfList())
    
    DEVsyStartDate = formatDate(new Date())
    DEVsyViCompany = '阳光'

    
    DEVisTransfered = false
    DEVtransferedAt = ''
    DEVspecialAgreement = ''
    DEVvehicleManagerArea = '本地车牌'
    DEVvehiclePuducingArea = ''
    DEVownerType = ''
    
    DEAfileInfos = ''

    // 车主信息
    DSOnickname = ''
    DSOkind = '个人'
    DSOidCardNumber = ''
    DSOidCardKind = ''
    DSOaddress = ''
    DSOcontact = ''
    DSOphone = ''
    DSOorder = 0
    
    // 投保人
    DSPnickname = ''
    DSPkind = '个人'
    DSPidCardNumber = ''
    DSPidCardKind = ''
    DSPaddress = ''
    DSPcontact = ''
    DSPphone = ''
    DSPorder= 0
    
    // 被保人
    DSAnickname = ''
    DSAkind = '个人'
    DSAidCardNumber = ''
    DSAidCardKind = ''
    DSAaddress = ''
    DSAcontact = ''
    DSAphone = ''
    DSAorder = 0
    
    // 受益人
    DSBeneficiaries = [new carPersonal({order:1})]
    
    // 计费
    Dquotations = []
    

} 